#include <gmlib/sm9/internal/sm9_field.h>
#include <stdexcept>
#include <cstring>

using namespace sm9::internal;

void test_sm9_fp_dbl()
{
    sm9_fp_t    a, c;
    std::uint8_t c_data[32];

    static std::uint8_t a0[32] = {0x37,0x66,0xb6,0xce,0xb8,0xcc,0x07,0xcd,0xee,0x13,0xaf,0xa4,0xcd,0x61,0x5e,0x36,0x67,0xe8,0xf8,0x3f,0x8f,0xd1,0xed,0xfd,0x68,0xb4,0x51,0xb8,0x5b,0x04,0x47,0x19};
    static std::uint8_t c0[32] = {0x6e,0xcd,0x6d,0x9d,0x71,0x98,0x0f,0x9b,0xdc,0x27,0x5f,0x49,0x9a,0xc2,0xbc,0x6c,0xcf,0xd1,0xf0,0x7f,0x1f,0xa3,0xdb,0xfa,0xd1,0x68,0xa3,0x70,0xb6,0x08,0x8e,0x32};
    sm9_fp_from_bytes(a, a0);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c0, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a1[32] = {0x3a,0xbc,0x45,0x3e,0x47,0xf4,0xe7,0x28,0x9c,0x97,0x14,0x2f,0x37,0x0d,0x43,0x34,0xcc,0x8d,0x46,0x9d,0x6a,0x60,0x38,0x0d,0x41,0x90,0x1a,0xfe,0xbc,0x2f,0x8c,0x4f};
    static std::uint8_t c1[32] = {0x75,0x78,0x8a,0x7c,0x8f,0xe9,0xce,0x51,0x39,0x2e,0x28,0x5e,0x6e,0x1a,0x86,0x69,0x99,0x1a,0x8d,0x3a,0xd4,0xc0,0x70,0x1a,0x83,0x20,0x35,0xfd,0x78,0x5f,0x18,0x9e};
    sm9_fp_from_bytes(a, a1);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c1, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a2[32] = {0x42,0xbd,0xa2,0x17,0xf0,0x94,0x4e,0x73,0xb4,0x80,0x6d,0x9c,0xe0,0x84,0xce,0x61,0xbb,0x97,0x72,0x25,0x13,0x71,0x23,0x17,0x06,0xf3,0x0a,0xa5,0x72,0x8e,0x8c,0x07};
    static std::uint8_t c2[32] = {0x85,0x7b,0x44,0x2f,0xe1,0x28,0x9c,0xe7,0x69,0x00,0xdb,0x39,0xc1,0x09,0x9c,0xc3,0x77,0x2e,0xe4,0x4a,0x26,0xe2,0x46,0x2e,0x0d,0xe6,0x15,0x4a,0xe5,0x1d,0x18,0x0e};
    sm9_fp_from_bytes(a, a2);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c2, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a3[32] = {0x44,0x6e,0x74,0xe7,0x04,0x17,0x94,0xef,0xd0,0x20,0xa9,0x08,0x46,0xd3,0x34,0x17,0xae,0x9f,0x06,0x90,0x7b,0x9e,0xeb,0x76,0x61,0xb6,0x51,0xd2,0x68,0x36,0x15,0x0b};
    static std::uint8_t c3[32] = {0x88,0xdc,0xe9,0xce,0x08,0x2f,0x29,0xdf,0xa0,0x41,0x52,0x10,0x8d,0xa6,0x68,0x2f,0x5d,0x3e,0x0d,0x20,0xf7,0x3d,0xd6,0xec,0xc3,0x6c,0xa3,0xa4,0xd0,0x6c,0x2a,0x16};
    sm9_fp_from_bytes(a, a3);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c3, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a4[32] = {0xb3,0x4d,0xa0,0x79,0x84,0xfa,0x05,0x36,0x97,0x66,0x5b,0x29,0x56,0x8f,0x99,0x73,0x36,0xd9,0x37,0x99,0x2a,0x2c,0x1c,0x2f,0x3c,0x03,0x9a,0x13,0x13,0x04,0x14,0x69};
    static std::uint8_t c4[32] = {0xb0,0x5b,0x40,0xf3,0x07,0x50,0x63,0x7b,0x58,0xc9,0x0b,0x02,0xb7,0x90,0x6b,0xa1,0x4b,0xbf,0xdb,0xe7,0x39,0xdd,0x49,0x82,0x92,0x97,0x98,0xfe,0x42,0xb6,0xe3,0x55};
    sm9_fp_from_bytes(a, a4);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c4, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a5[32] = {0x5b,0xe7,0xec,0x06,0x7c,0x49,0x7e,0xb0,0xca,0xff,0x68,0x26,0xbb,0xf1,0xa6,0x31,0xe0,0xbc,0x12,0xe1,0xdb,0x1e,0x39,0x79,0x65,0xeb,0xdd,0x1e,0xb7,0x9d,0x48,0x43};
    static std::uint8_t c5[32] = {0x01,0x8f,0xd8,0x0c,0xf5,0xef,0x56,0x6f,0xbf,0xfb,0x24,0xfd,0x82,0x54,0x85,0x1e,0x9f,0x85,0x92,0x78,0x9b,0xc1,0x84,0x16,0xe6,0x68,0x1f,0x15,0x8b,0xe9,0x4b,0x09};
    sm9_fp_from_bytes(a, a5);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c5, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a6[32] = {0x29,0x27,0xab,0xd4,0x77,0xec,0x20,0x20,0x24,0x79,0xb4,0xbf,0x13,0x6b,0x16,0xe5,0x06,0x93,0x7d,0x5c,0x2e,0x88,0x47,0x1e,0xf7,0x9b,0x4e,0xa0,0x03,0x0b,0x65,0x06};
    static std::uint8_t c6[32] = {0x52,0x4f,0x57,0xa8,0xef,0xd8,0x40,0x40,0x48,0xf3,0x69,0x7e,0x26,0xd6,0x2d,0xca,0x0d,0x26,0xfa,0xb8,0x5d,0x10,0x8e,0x3d,0xef,0x36,0x9d,0x40,0x06,0x16,0xca,0x0c};
    sm9_fp_from_bytes(a, a6);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c6, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a7[32] = {0x19,0x50,0x6c,0xf6,0xe2,0x69,0xb4,0x50,0x28,0xfe,0x5a,0x55,0xc5,0x1e,0x4a,0xd3,0x1a,0x83,0x00,0x33,0xf4,0xb5,0x7a,0xbb,0xad,0x43,0xa2,0xce,0x24,0x41,0xde,0x04};
    static std::uint8_t c7[32] = {0x32,0xa0,0xd9,0xed,0xc4,0xd3,0x68,0xa0,0x51,0xfc,0xb4,0xab,0x8a,0x3c,0x95,0xa6,0x35,0x06,0x00,0x67,0xe9,0x6a,0xf5,0x77,0x5a,0x87,0x45,0x9c,0x48,0x83,0xbc,0x08};
    sm9_fp_from_bytes(a, a7);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c7, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a8[32] = {0x42,0x27,0xd5,0xe0,0xf2,0x43,0xea,0xdf,0x1b,0xed,0x0f,0xd7,0x6b,0xe9,0x74,0x53,0x89,0xb3,0x3d,0x6e,0x4d,0x33,0x31,0xc2,0xb7,0x03,0x97,0x7f,0xdd,0x7f,0xdb,0x07};
    static std::uint8_t c8[32] = {0x84,0x4f,0xab,0xc1,0xe4,0x87,0xd5,0xbe,0x37,0xda,0x1f,0xae,0xd7,0xd2,0xe8,0xa7,0x13,0x66,0x7a,0xdc,0x9a,0x66,0x63,0x85,0x6e,0x07,0x2e,0xff,0xba,0xff,0xb6,0x0e};
    sm9_fp_from_bytes(a, a8);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c8, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a9[32] = {0x28,0x81,0x6c,0x9e,0x29,0x51,0x4b,0xf8,0x16,0xad,0x7c,0x6e,0x16,0xb3,0x6b,0x7c,0xbd,0x5d,0x5c,0x95,0x47,0x4c,0x9f,0x9a,0x25,0x12,0x43,0x69,0x38,0x8a,0x07,0x58};
    static std::uint8_t c9[32] = {0x51,0x02,0xd9,0x3c,0x52,0xa2,0x97,0xf0,0x2d,0x5a,0xf8,0xdc,0x2d,0x66,0xd6,0xf9,0x7a,0xba,0xb9,0x2a,0x8e,0x99,0x3f,0x34,0x4a,0x24,0x86,0xd2,0x71,0x14,0x0e,0xb0};
    sm9_fp_from_bytes(a, a9);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c9, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a10[32] = {0x65,0x9f,0x55,0x37,0xeb,0x28,0x87,0xce,0x17,0xac,0xda,0x3d,0x4c,0xaf,0xee,0x24,0xe0,0xbc,0xa1,0xd1,0x78,0x12,0x29,0x73,0x17,0xca,0x46,0x88,0x97,0x79,0xa7,0x67};
    static std::uint8_t c10[32] = {0x14,0xfe,0xaa,0x6f,0xd3,0xad,0x68,0xaa,0x59,0x56,0x09,0x2a,0xa3,0xd1,0x15,0x04,0x9f,0x86,0xb0,0x57,0xd5,0xa9,0x64,0x0a,0x4a,0x24,0xf1,0xe9,0x4b,0xa2,0x09,0x51};
    sm9_fp_from_bytes(a, a10);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c10, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a11[32] = {0x4f,0xf3,0x10,0xd9,0xe2,0xad,0x92,0xf0,0x08,0xac,0x7b,0x47,0xa1,0x20,0x25,0x6c,0xc8,0x51,0x22,0xb3,0x35,0x53,0x9e,0x22,0xfc,0xa4,0x9c,0x1d,0x58,0x1f,0x1b,0xa4};
    static std::uint8_t c11[32] = {0x9f,0xe6,0x21,0xb3,0xc5,0x5b,0x25,0xe0,0x11,0x58,0xf6,0x8f,0x42,0x40,0x4a,0xd9,0x90,0xa2,0x45,0x66,0x6a,0xa7,0x3c,0x45,0xf9,0x49,0x38,0x3a,0xb0,0x3e,0x37,0x48};
    sm9_fp_from_bytes(a, a11);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c11, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a12[32] = {0x5a,0xa3,0x6b,0x68,0xb5,0x8d,0x64,0xc5,0x1c,0xbf,0x70,0x86,0x49,0x57,0x16,0x56,0x7a,0x1b,0xec,0x33,0xa1,0xae,0x1d,0x40,0x18,0x8a,0x97,0x62,0xea,0x08,0x45,0x11};
    static std::uint8_t c12[32] = {0xb5,0x46,0xd6,0xd1,0x6b,0x1a,0xc9,0x8a,0x39,0x7e,0xe1,0x0c,0x92,0xae,0x2c,0xac,0xf4,0x37,0xd8,0x67,0x43,0x5c,0x3a,0x80,0x31,0x15,0x2e,0xc5,0xd4,0x10,0x8a,0x22};
    sm9_fp_from_bytes(a, a12);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c12, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a13[32] = {0x6c,0xd0,0x78,0x40,0x7a,0x49,0x2d,0x59,0x90,0x6b,0x10,0x84,0xa2,0x54,0x05,0x74,0x71,0x4a,0x64,0x1b,0x7c,0xd5,0xd1,0x83,0x85,0xc0,0x21,0x45,0x94,0xf6,0x1f,0x63};
    static std::uint8_t c13[32] = {0x23,0x60,0xf0,0x80,0xf1,0xee,0xb3,0xc1,0x4a,0xd2,0x75,0xb9,0x4f,0x19,0x43,0xa3,0xc0,0xa2,0x34,0xeb,0xdf,0x30,0xb4,0x2b,0x26,0x10,0xa7,0x63,0x46,0x9a,0xf9,0x49};
    sm9_fp_from_bytes(a, a13);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c13, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a14[32] = {0x94,0x2b,0x3a,0x4e,0xc9,0x2e,0x8a,0x03,0xac,0x8a,0x89,0x43,0x82,0xfe,0xf9,0x32,0xee,0x38,0xd7,0x3b,0xac,0x9b,0x23,0xbc,0x59,0xf6,0xe2,0x96,0xb0,0xc7,0x71,0x94};
    static std::uint8_t c14[32] = {0x72,0x16,0x74,0x9d,0x8f,0xb9,0x6d,0x15,0x83,0x11,0x67,0x37,0x10,0x6f,0x2b,0x20,0xba,0x7f,0x1b,0x2c,0x3e,0xbb,0x58,0x9c,0xce,0x7e,0x2a,0x05,0x7e,0x3d,0x9d,0xab};
    sm9_fp_from_bytes(a, a14);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c14, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a15[32] = {0x61,0x66,0x06,0x57,0xdc,0x10,0x5e,0xad,0xeb,0xfa,0x74,0x6b,0x1a,0x39,0x84,0x5b,0xae,0xde,0x2b,0xbb,0x04,0x0b,0x8b,0x33,0xca,0x70,0xd4,0xba,0x01,0xbf,0x9a,0x1f};
    static std::uint8_t c15[32] = {0x0c,0x8c,0x0c,0xaf,0xb5,0x7d,0x16,0x6a,0x01,0xf1,0x3d,0x86,0x3e,0xe4,0x41,0x72,0x3b,0xc9,0xc4,0x2a,0xed,0x9c,0x27,0x8b,0xaf,0x72,0x0e,0x4c,0x20,0x2d,0xee,0xc1};
    sm9_fp_from_bytes(a, a15);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c15, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a16[32] = {0x2e,0x22,0x36,0xd3,0xa8,0xe7,0xea,0x20,0x19,0x77,0xc4,0x11,0x18,0x30,0xf8,0x91,0xee,0x5a,0x6a,0x74,0x63,0x7a,0x19,0x92,0x07,0x95,0x6f,0x0a,0xe7,0x74,0x34,0x32};
    static std::uint8_t c16[32] = {0x5c,0x44,0x6d,0xa7,0x51,0xcf,0xd4,0x40,0x32,0xef,0x88,0x22,0x30,0x61,0xf1,0x23,0xdc,0xb4,0xd4,0xe8,0xc6,0xf4,0x33,0x24,0x0f,0x2a,0xde,0x15,0xce,0xe8,0x68,0x64};
    sm9_fp_from_bytes(a, a16);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c16, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a17[32] = {0x7f,0x60,0x4e,0x3a,0xa8,0x84,0x02,0x28,0xa3,0x98,0x2c,0xc7,0x4a,0x68,0x57,0xf2,0x92,0x11,0x59,0x75,0xb3,0xf3,0x81,0x09,0x7f,0xe5,0x49,0x58,0x62,0x30,0xeb,0x15};
    static std::uint8_t c17[32] = {0x48,0x80,0x9c,0x75,0x4e,0x64,0x5d,0x5f,0x71,0x2c,0xae,0x3e,0x9f,0x41,0xe8,0xa0,0x02,0x30,0x1f,0xa0,0x4d,0x6c,0x13,0x37,0x1a,0x5a,0xf7,0x88,0xe1,0x10,0x90,0xad};
    sm9_fp_from_bytes(a, a17);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c17, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a18[32] = {0x8b,0x6b,0x4b,0xcb,0x01,0x27,0x4d,0x24,0x6f,0x1e,0xeb,0x3f,0xb6,0xdc,0x5c,0x4e,0xc9,0x68,0x2e,0xa3,0xb7,0xb0,0x07,0x7b,0x90,0x28,0xb8,0x1f,0xf5,0x6d,0x15,0xc5};
    static std::uint8_t c18[32] = {0x60,0x96,0x97,0x95,0xff,0xaa,0xf3,0x57,0x08,0x3a,0x2b,0x2f,0x78,0x29,0xf1,0x58,0x70,0xdd,0xc9,0xfc,0x54,0xe5,0x20,0x1b,0x3a,0xe1,0xd5,0x18,0x07,0x88,0xe6,0x0d};
    sm9_fp_from_bytes(a, a18);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c18, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a19[32] = {0x31,0x35,0x15,0x95,0x56,0x1c,0x5b,0x92,0xfb,0x12,0x96,0xe9,0x9a,0x02,0xa2,0xb2,0xe9,0x63,0x53,0xa1,0x4a,0x12,0x47,0x56,0x31,0x91,0x1e,0x48,0xf5,0xd3,0xd9,0xd4};
    static std::uint8_t c19[32] = {0x62,0x6a,0x2b,0x2a,0xac,0x38,0xb7,0x25,0xf6,0x25,0x2d,0xd3,0x34,0x05,0x45,0x65,0xd2,0xc6,0xa7,0x42,0x94,0x24,0x8e,0xac,0x63,0x22,0x3c,0x91,0xeb,0xa7,0xb3,0xa8};
    sm9_fp_from_bytes(a, a19);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c19, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a20[32] = {0x66,0xe7,0xd2,0xa8,0x82,0x28,0xab,0xe6,0x4d,0xf4,0x87,0x73,0x58,0x71,0x10,0xd2,0x22,0x21,0xaa,0x59,0x54,0xc7,0x5c,0x32,0x2d,0x56,0x84,0x6f,0x69,0x7e,0xc5,0x33};
    static std::uint8_t c20[32] = {0x17,0x8f,0xa5,0x51,0x01,0xad,0xb0,0xda,0xc5,0xe5,0x63,0x96,0xbb,0x53,0x5a,0x5f,0x22,0x50,0xc1,0x67,0x8f,0x13,0xc9,0x88,0x75,0x3d,0x6d,0xb6,0xef,0xac,0x44,0xe9};
    sm9_fp_from_bytes(a, a20);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c20, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a21[32] = {0x47,0x7a,0x9f,0xde,0x0b,0x3f,0x66,0x8d,0xe0,0xce,0xf7,0x00,0xf0,0x3e,0xf4,0x04,0x9e,0xa9,0x25,0x2f,0xf0,0xea,0xdb,0xac,0x17,0x37,0x3d,0x49,0x60,0x93,0x5b,0xb9};
    static std::uint8_t c21[32] = {0x8e,0xf5,0x3f,0xbc,0x16,0x7e,0xcd,0x1b,0xc1,0x9d,0xee,0x01,0xe0,0x7d,0xe8,0x09,0x3d,0x52,0x4a,0x5f,0xe1,0xd5,0xb7,0x58,0x2e,0x6e,0x7a,0x92,0xc1,0x26,0xb7,0x72};
    sm9_fp_from_bytes(a, a21);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c21, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a22[32] = {0x03,0x61,0x44,0x88,0xda,0x57,0x39,0x6d,0xcb,0x96,0x97,0x52,0x76,0xf0,0x3e,0x02,0xa5,0xf2,0x11,0xf7,0xdc,0x74,0xc7,0xff,0x41,0x40,0xaa,0x79,0xe8,0x2d,0x4a,0x5b};
    static std::uint8_t c22[32] = {0x06,0xc2,0x89,0x11,0xb4,0xae,0x72,0xdb,0x97,0x2d,0x2e,0xa4,0xed,0xe0,0x7c,0x05,0x4b,0xe4,0x23,0xef,0xb8,0xe9,0x8f,0xfe,0x82,0x81,0x54,0xf3,0xd0,0x5a,0x94,0xb6};
    sm9_fp_from_bytes(a, a22);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c22, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a23[32] = {0x92,0xee,0xf7,0x48,0xba,0x4a,0x5e,0x4a,0xe4,0x97,0x4f,0xf3,0x70,0x80,0x70,0x87,0x9e,0xdf,0x3b,0x66,0x1e,0x1d,0x05,0xdc,0x4c,0x13,0x70,0x6e,0xaa,0x07,0xc1,0x84};
    static std::uint8_t c23[32] = {0x6f,0x9d,0xee,0x91,0x71,0xf1,0x15,0xa3,0xf3,0x2a,0xf4,0x96,0xeb,0x72,0x19,0xca,0x1b,0xcb,0xe3,0x81,0x21,0xbf,0x1c,0xdc,0xb2,0xb7,0x45,0xb5,0x70,0xbe,0x3d,0x8b};
    sm9_fp_from_bytes(a, a23);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c23, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a24[32] = {0x80,0x92,0xbf,0x84,0x81,0x7d,0x32,0x27,0x17,0x75,0xc2,0x52,0x50,0x64,0x21,0x24,0xee,0x22,0xd7,0x86,0x33,0x68,0xe9,0xd8,0x99,0x69,0x88,0x70,0xd0,0x23,0xb3,0x47};
    static std::uint8_t c24[32] = {0x4a,0xe5,0x7f,0x09,0x00,0x56,0xbd,0x5c,0x58,0xe7,0xd9,0x54,0xab,0x39,0x7b,0x04,0xba,0x53,0x1b,0xc1,0x4c,0x56,0xe4,0xd5,0x4d,0x63,0x75,0xb9,0xbc,0xf6,0x21,0x11};
    sm9_fp_from_bytes(a, a24);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c24, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a25[32] = {0x22,0xd4,0x59,0x09,0xa3,0x34,0x3a,0xda,0x51,0x00,0xf1,0x31,0xf2,0x82,0xe7,0xd2,0x56,0xf7,0x37,0x5b,0xe9,0x1b,0xb0,0xeb,0x24,0x65,0x97,0x15,0xb7,0x57,0xa7,0xe5};
    static std::uint8_t c25[32] = {0x45,0xa8,0xb2,0x13,0x46,0x68,0x75,0xb4,0xa2,0x01,0xe2,0x63,0xe5,0x05,0xcf,0xa4,0xad,0xee,0x6e,0xb7,0xd2,0x37,0x61,0xd6,0x48,0xcb,0x2e,0x2b,0x6e,0xaf,0x4f,0xca};
    sm9_fp_from_bytes(a, a25);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c25, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a26[32] = {0x6d,0xef,0x40,0xf9,0xcf,0x69,0xde,0x83,0x58,0x86,0xad,0x6f,0xc6,0x0b,0x25,0x32,0x48,0x94,0x85,0x71,0x30,0x6d,0x92,0xf6,0x5e,0x63,0x29,0x70,0x6d,0x8a,0x21,0x7f};
    static std::uint8_t c26[32] = {0x25,0x9e,0x81,0xf3,0x9c,0x30,0x16,0x14,0xdb,0x09,0xaf,0x8f,0x96,0x87,0x83,0x1f,0x6f,0x36,0x77,0x97,0x46,0x60,0x37,0x10,0xd7,0x56,0xb7,0xb8,0xf7,0xc2,0xfd,0x81};
    sm9_fp_from_bytes(a, a26);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c26, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a27[32] = {0x41,0xdb,0xa7,0xe0,0xcc,0x94,0x82,0x7e,0x01,0x98,0x7b,0x57,0xd9,0x44,0x54,0x1b,0x3c,0xfb,0xd2,0xca,0x20,0x8c,0x13,0xcd,0x7a,0x37,0x16,0xc7,0x81,0x98,0x20,0x40};
    static std::uint8_t c27[32] = {0x83,0xb7,0x4f,0xc1,0x99,0x29,0x04,0xfc,0x03,0x30,0xf6,0xaf,0xb2,0x88,0xa8,0x36,0x79,0xf7,0xa5,0x94,0x41,0x18,0x27,0x9a,0xf4,0x6e,0x2d,0x8f,0x03,0x30,0x40,0x80};
    sm9_fp_from_bytes(a, a27);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c27, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a28[32] = {0x95,0xa5,0xad,0x06,0x46,0xcd,0x4e,0x27,0x67,0xb4,0x7d,0xe7,0xbf,0xa0,0x10,0x14,0x2c,0xea,0xc2,0xf9,0x1f,0xbc,0x4b,0xa5,0xdb,0x78,0xc3,0x8e,0xb1,0x0b,0xa3,0xe4};
    static std::uint8_t c28[32] = {0x75,0x0b,0x5a,0x0c,0x8a,0xf6,0xf5,0x5c,0xf9,0x65,0x50,0x7f,0x89,0xb1,0x58,0xe3,0x37,0xe2,0xf2,0xa7,0x24,0xfd,0xa8,0x6f,0xd1,0x81,0xeb,0xf5,0x7e,0xc6,0x02,0x4b};
    sm9_fp_from_bytes(a, a28);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c28, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a29[32] = {0x5a,0x2c,0xd5,0x4f,0xcc,0x43,0x2d,0xb8,0xb2,0xc7,0xca,0x97,0xcf,0xa1,0xe9,0xd8,0xb7,0x52,0xeb,0xd5,0x22,0x00,0x63,0x34,0xd4,0x9e,0x7d,0x53,0x99,0x2c,0xbc,0x62};
    static std::uint8_t c29[32] = {0xb4,0x59,0xaa,0x9f,0x98,0x86,0x5b,0x71,0x65,0x8f,0x95,0x2f,0x9f,0x43,0xd3,0xb1,0x6e,0xa5,0xd7,0xaa,0x44,0x00,0xc6,0x69,0xa9,0x3c,0xfa,0xa7,0x32,0x59,0x78,0xc4};
    sm9_fp_from_bytes(a, a29);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c29, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a30[32] = {0x8b,0x6c,0x32,0x1f,0xb1,0x8a,0x2f,0x6f,0x3f,0x57,0x67,0xe9,0x9c,0x73,0xee,0xbb,0x93,0x18,0xd0,0x61,0x2f,0x79,0xe7,0x7a,0x66,0x59,0x12,0xa9,0xdd,0xbd,0xc2,0x5f};
    static std::uint8_t c30[32] = {0x60,0x98,0x64,0x3f,0x60,0x70,0xb7,0xec,0xa8,0xab,0x24,0x83,0x43,0x59,0x16,0x32,0x04,0x3f,0x0d,0x77,0x44,0x78,0xe0,0x18,0xe7,0x42,0x8a,0x2b,0xd8,0x2a,0x3f,0x41};
    sm9_fp_from_bytes(a, a30);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c30, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a31[32] = {0x1c,0x2b,0xea,0x59,0xb9,0x5b,0xaf,0xa3,0x54,0xa3,0xd6,0xf5,0x28,0x65,0xe2,0xc0,0xc3,0x10,0x07,0x49,0xbf,0x58,0x63,0x03,0xee,0x03,0xac,0xdb,0xfa,0x16,0x72,0xdc};
    static std::uint8_t c31[32] = {0x38,0x57,0xd4,0xb3,0x72,0xb7,0x5f,0x46,0xa9,0x47,0xad,0xea,0x50,0xcb,0xc5,0x81,0x86,0x20,0x0e,0x93,0x7e,0xb0,0xc6,0x07,0xdc,0x07,0x59,0xb7,0xf4,0x2c,0xe5,0xb8};
    sm9_fp_from_bytes(a, a31);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c31, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a32[32] = {0x0e,0xc7,0x26,0xa7,0x2e,0xaf,0x4a,0x59,0x44,0x86,0x70,0xaf,0x3b,0x2c,0x55,0x07,0x8a,0xc0,0x4f,0x96,0x8c,0x19,0xeb,0x48,0x13,0xfa,0x80,0x7e,0x89,0x18,0x1d,0x84};
    static std::uint8_t c32[32] = {0x1d,0x8e,0x4d,0x4e,0x5d,0x5e,0x94,0xb2,0x89,0x0c,0xe1,0x5e,0x76,0x58,0xaa,0x0f,0x15,0x80,0x9f,0x2d,0x18,0x33,0xd6,0x90,0x27,0xf5,0x00,0xfd,0x12,0x30,0x3b,0x08};
    sm9_fp_from_bytes(a, a32);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c32, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a33[32] = {0x4a,0x55,0xb4,0x51,0x78,0x0e,0xcb,0x55,0x7c,0x22,0xb4,0x2b,0xeb,0x8b,0xb6,0x49,0x0b,0x6e,0xbf,0xbe,0x78,0xd5,0x76,0xba,0xc5,0x00,0xfa,0x1c,0x2b,0xcb,0x3b,0x07};
    static std::uint8_t c33[32] = {0x94,0xab,0x68,0xa2,0xf0,0x1d,0x96,0xaa,0xf8,0x45,0x68,0x57,0xd7,0x17,0x6c,0x92,0x16,0xdd,0x7f,0x7c,0xf1,0xaa,0xed,0x75,0x8a,0x01,0xf4,0x38,0x57,0x96,0x76,0x0e};
    sm9_fp_from_bytes(a, a33);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c33, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a34[32] = {0x02,0x52,0xc2,0xf7,0x8b,0x1c,0x1e,0x9d,0xee,0x14,0x1b,0x7e,0x1f,0xf1,0x1a,0x41,0xe8,0xc9,0xdf,0x78,0x2c,0x43,0x17,0xc1,0xe6,0x59,0x10,0x68,0xa8,0xd8,0x0e,0x94};
    static std::uint8_t c34[32] = {0x04,0xa5,0x85,0xef,0x16,0x38,0x3d,0x3b,0xdc,0x28,0x36,0xfc,0x3f,0xe2,0x34,0x83,0xd1,0x93,0xbe,0xf0,0x58,0x86,0x2f,0x83,0xcc,0xb2,0x20,0xd1,0x51,0xb0,0x1d,0x28};
    sm9_fp_from_bytes(a, a34);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c34, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a35[32] = {0x05,0x10,0x22,0x2d,0x1f,0xe2,0x0f,0x80,0xe4,0x20,0xeb,0x56,0x22,0x90,0xd8,0xc0,0xe8,0xfa,0xc4,0x43,0x17,0xee,0xbd,0x6f,0x01,0xa1,0x1c,0x05,0xd1,0x0f,0xc6,0x5c};
    static std::uint8_t c35[32] = {0x0a,0x20,0x44,0x5a,0x3f,0xc4,0x1f,0x01,0xc8,0x41,0xd6,0xac,0x45,0x21,0xb1,0x81,0xd1,0xf5,0x88,0x86,0x2f,0xdd,0x7a,0xde,0x03,0x42,0x38,0x0b,0xa2,0x1f,0x8c,0xb8};
    sm9_fp_from_bytes(a, a35);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c35, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a36[32] = {0xa4,0x92,0x17,0x68,0xb5,0x2d,0xf7,0xc4,0x1b,0x69,0x5b,0x54,0xd8,0x94,0xef,0x82,0x54,0x4f,0xfa,0x13,0x13,0x43,0xd6,0x5c,0x54,0xad,0x6c,0x3f,0x5f,0xa8,0x1a,0xbf};
    static std::uint8_t c36[32] = {0x92,0xe4,0x2e,0xd1,0x67,0xb8,0x48,0x96,0x60,0xcf,0x0b,0x59,0xbb,0x9b,0x17,0xbf,0x86,0xad,0x60,0xdb,0x0c,0x0c,0xbd,0xdc,0xc3,0xeb,0x3d,0x56,0xdb,0xfe,0xf0,0x01};
    sm9_fp_from_bytes(a, a36);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c36, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a37[32] = {0x6b,0x6e,0xeb,0x6a,0xb4,0x35,0xf0,0xa5,0x5d,0x67,0x4d,0x8f,0xb2,0xb9,0xab,0xe5,0xe5,0x25,0x67,0xd7,0xfd,0x03,0x8b,0xf1,0x56,0x6a,0xd3,0xfa,0x13,0xdd,0xfd,0x84};
    static std::uint8_t c37[32] = {0x20,0x9d,0xd6,0xd5,0x65,0xc8,0x3a,0x58,0xe4,0xca,0xef,0xcf,0x6f,0xe4,0x90,0x86,0xa8,0x58,0x3c,0x64,0xdf,0x8c,0x29,0x06,0xc7,0x66,0x0c,0xcc,0x44,0x6a,0xb5,0x8b};
    sm9_fp_from_bytes(a, a37);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c37, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a38[32] = {0x3d,0x61,0x12,0x7b,0x92,0x9c,0xff,0xe7,0x6b,0xa5,0x9c,0xc0,0x30,0x1b,0x62,0x28,0x14,0x06,0xd3,0x0d,0x05,0x43,0x49,0x92,0x5d,0xb1,0xab,0x44,0x27,0xd0,0x63,0x1f};
    static std::uint8_t c38[32] = {0x7a,0xc2,0x24,0xf7,0x25,0x39,0xff,0xce,0xd7,0x4b,0x39,0x80,0x60,0x36,0xc4,0x50,0x28,0x0d,0xa6,0x1a,0x0a,0x86,0x93,0x24,0xbb,0x63,0x56,0x88,0x4f,0xa0,0xc6,0x3e};
    sm9_fp_from_bytes(a, a38);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c38, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a39[32] = {0x21,0xed,0x40,0x17,0xde,0x49,0xd0,0xff,0x88,0xe3,0xf6,0x72,0x08,0x68,0x43,0x54,0x20,0xc6,0xa7,0x4b,0x3e,0xaf,0xab,0xfd,0x72,0xdf,0x7a,0x12,0x7c,0xc9,0x7e,0x2a};
    static std::uint8_t c39[32] = {0x43,0xda,0x80,0x2f,0xbc,0x93,0xa1,0xff,0x11,0xc7,0xec,0xe4,0x10,0xd0,0x86,0xa8,0x41,0x8d,0x4e,0x96,0x7d,0x5f,0x57,0xfa,0xe5,0xbe,0xf4,0x24,0xf9,0x92,0xfc,0x54};
    sm9_fp_from_bytes(a, a39);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c39, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a40[32] = {0x99,0x66,0xca,0x4e,0xe1,0x49,0xc3,0xc1,0x7c,0x6d,0xed,0x1c,0xa5,0x25,0x5e,0x85,0x82,0x71,0x01,0xff,0x73,0x7e,0xf8,0xb6,0x63,0x14,0x41,0x68,0x7e,0xf9,0x51,0xc5};
    static std::uint8_t c40[32] = {0x7c,0x8d,0x94,0x9d,0xbf,0xef,0xe0,0x91,0x22,0xd8,0x2e,0xe9,0x54,0xbb,0xf5,0xc5,0xe2,0xef,0x70,0xb3,0xcc,0x83,0x02,0x90,0xe0,0xb8,0xe7,0xa9,0x1a,0xa1,0x5e,0x0d};
    sm9_fp_from_bytes(a, a40);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c40, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a41[32] = {0x0b,0x54,0x7b,0xaa,0x85,0x9b,0x38,0x47,0x3c,0x17,0x31,0x2b,0x2d,0x1b,0x4d,0x53,0x36,0xfa,0x79,0x87,0x2f,0xc4,0x60,0xeb,0xfe,0x3d,0x39,0x5c,0x33,0x9a,0xd4,0x62};
    static std::uint8_t c41[32] = {0x16,0xa8,0xf7,0x55,0x0b,0x36,0x70,0x8e,0x78,0x2e,0x62,0x56,0x5a,0x36,0x9a,0xa6,0x6d,0xf4,0xf3,0x0e,0x5f,0x88,0xc1,0xd7,0xfc,0x7a,0x72,0xb8,0x67,0x35,0xa8,0xc4};
    sm9_fp_from_bytes(a, a41);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c41, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a42[32] = {0x4e,0xfa,0xa0,0x4b,0xaf,0x65,0xed,0x26,0xea,0x88,0x35,0x5e,0xfd,0x22,0xed,0x64,0xcd,0xe2,0x84,0x11,0xb3,0xfa,0x4a,0x84,0x38,0xe1,0x15,0x75,0xce,0x89,0x7e,0x5d};
    static std::uint8_t c42[32] = {0x9d,0xf5,0x40,0x97,0x5e,0xcb,0xda,0x4d,0xd5,0x10,0x6a,0xbd,0xfa,0x45,0xda,0xc9,0x9b,0xc5,0x08,0x23,0x67,0xf4,0x95,0x08,0x71,0xc2,0x2a,0xeb,0x9d,0x12,0xfc,0xba};
    sm9_fp_from_bytes(a, a42);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c42, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a43[32] = {0xa5,0x07,0x14,0x3c,0x64,0x2a,0x03,0x55,0x50,0xfe,0xab,0x1b,0x2c,0x2b,0xef,0x14,0x86,0xf9,0x1e,0x44,0xde,0x95,0x8b,0xd4,0xf2,0x26,0x9e,0x39,0x6d,0xa0,0x25,0xea};
    static std::uint8_t c43[32] = {0x93,0xce,0x28,0x78,0xc5,0xb0,0x5f,0xb8,0xcb,0xf9,0xaa,0xe6,0x62,0xc9,0x16,0xe3,0xeb,0xff,0xa9,0x3e,0xa2,0xb0,0x28,0xcd,0xfe,0xdd,0xa1,0x4a,0xf7,0xef,0x06,0x57};
    sm9_fp_from_bytes(a, a43);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c43, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a44[32] = {0x2a,0x26,0x5f,0x80,0x68,0x7c,0x00,0x66,0x9a,0x0a,0x09,0xcc,0x04,0xa5,0x37,0xbe,0x73,0x67,0x39,0x11,0xcb,0x84,0x30,0x74,0xfa,0xa7,0x34,0xe2,0x62,0x67,0xea,0xc2};
    static std::uint8_t c44[32] = {0x54,0x4c,0xbf,0x00,0xd0,0xf8,0x00,0xcd,0x34,0x14,0x13,0x98,0x09,0x4a,0x6f,0x7c,0xe6,0xce,0x72,0x23,0x97,0x08,0x60,0xe9,0xf5,0x4e,0x69,0xc4,0xc4,0xcf,0xd5,0x84};
    sm9_fp_from_bytes(a, a44);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c44, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a45[32] = {0xa3,0x66,0x92,0xf1,0xea,0xe4,0x86,0x57,0xa8,0x9a,0xd4,0x1c,0xe3,0xbe,0xfb,0x9e,0xca,0x8a,0xb5,0x12,0xb3,0x81,0x09,0xba,0xb8,0xf4,0xd8,0x02,0x44,0x88,0x87,0x14};
    static std::uint8_t c45[32] = {0x90,0x8d,0x25,0xe3,0xd3,0x25,0x65,0xbd,0x7b,0x31,0xfc,0xe9,0xd1,0xef,0x2f,0xf8,0x73,0x22,0xd6,0xda,0x4c,0x87,0x24,0x99,0x8c,0x7a,0x14,0xdc,0xa5,0xbf,0xc8,0xab};
    sm9_fp_from_bytes(a, a45);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c45, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a46[32] = {0x25,0x36,0x40,0x84,0x32,0xaa,0x14,0xc3,0x36,0x4f,0x1c,0x3a,0x48,0x5e,0xae,0x8d,0xf9,0xe7,0xd7,0x9b,0xac,0x0d,0xf4,0xff,0x52,0xb6,0xc0,0x77,0x95,0x36,0x4c,0x75};
    static std::uint8_t c46[32] = {0x4a,0x6c,0x81,0x08,0x65,0x54,0x29,0x86,0x6c,0x9e,0x38,0x74,0x90,0xbd,0x5d,0x1b,0xf3,0xcf,0xaf,0x37,0x58,0x1b,0xe9,0xfe,0xa5,0x6d,0x80,0xef,0x2a,0x6c,0x98,0xea};
    sm9_fp_from_bytes(a, a46);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c46, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a47[32] = {0x2d,0xb2,0x47,0x45,0x45,0x85,0x93,0x14,0xd2,0xdc,0x79,0x87,0x98,0x11,0x4b,0xf1,0x06,0x52,0x24,0x44,0x70,0x91,0x95,0xab,0xc4,0xca,0x0f,0x55,0x56,0xd5,0x0d,0x11};
    static std::uint8_t c47[32] = {0x5b,0x64,0x8e,0x8a,0x8b,0x0b,0x26,0x29,0xa5,0xb8,0xf3,0x0f,0x30,0x22,0x97,0xe2,0x0c,0xa4,0x48,0x88,0xe1,0x23,0x2b,0x57,0x89,0x94,0x1e,0xaa,0xad,0xaa,0x1a,0x22};
    sm9_fp_from_bytes(a, a47);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c47, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a48[32] = {0x13,0x30,0x12,0x5a,0xb9,0xd9,0x7f,0xf7,0xb4,0x42,0xb6,0xdd,0x2a,0x31,0x3a,0x8b,0x02,0x96,0x5a,0x03,0xbb,0x41,0x38,0xae,0x76,0xe2,0xc2,0xa4,0xb9,0x50,0x77,0x77};
    static std::uint8_t c48[32] = {0x26,0x60,0x24,0xb5,0x73,0xb2,0xff,0xef,0x68,0x85,0x6d,0xba,0x54,0x62,0x75,0x16,0x05,0x2c,0xb4,0x07,0x76,0x82,0x71,0x5c,0xed,0xc5,0x85,0x49,0x72,0xa0,0xee,0xee};
    sm9_fp_from_bytes(a, a48);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c48, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a49[32] = {0x61,0xd0,0xe3,0x85,0x17,0x86,0x76,0x2d,0x0f,0xd0,0xc7,0x27,0x8b,0xd3,0xfa,0x9f,0xf2,0x67,0x76,0xc0,0x6e,0x62,0x97,0xbe,0x22,0x20,0xe8,0xc8,0xe2,0x3d,0x20,0x92};
    static std::uint8_t c49[32] = {0x0d,0x61,0xc7,0x0a,0x2c,0x69,0x45,0x68,0x49,0x9d,0xe2,0xff,0x22,0x19,0x2d,0xfa,0xc2,0xdc,0x5a,0x35,0xc2,0x4a,0x40,0xa0,0x5e,0xd2,0x36,0x69,0xe1,0x28,0xfb,0xa7};
    sm9_fp_from_bytes(a, a49);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c49, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a50[32] = {0x9b,0x86,0x6f,0x29,0x77,0x67,0xb0,0x1e,0xf0,0x7f,0x34,0xca,0xb4,0x1f,0xb5,0x8d,0xe8,0x8f,0xbd,0x06,0x5f,0xba,0x6f,0x0c,0x99,0x87,0x2b,0x2b,0x1f,0x3b,0x2d,0xad};
    static std::uint8_t c50[32] = {0x80,0xcc,0xde,0x52,0xec,0x2b,0xb9,0x4c,0x0a,0xfa,0xbe,0x45,0x72,0xb0,0xa3,0xd6,0xaf,0x2c,0xe6,0xc1,0xa4,0xf9,0xef,0x3d,0x4d,0x9e,0xbb,0x2e,0x5b,0x25,0x15,0xdd};
    sm9_fp_from_bytes(a, a50);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c50, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a51[32] = {0x59,0xba,0x64,0xc4,0x74,0xc7,0x81,0x84,0x49,0xe5,0x4d,0xac,0xc4,0x88,0xdc,0x78,0xe5,0x28,0xa2,0x11,0xee,0xe0,0xac,0x17,0x47,0x1e,0x48,0x13,0x53,0x38,0x5a,0x80};
    static std::uint8_t c51[32] = {0xb3,0x74,0xc9,0x88,0xe9,0x8f,0x03,0x08,0x93,0xca,0x9b,0x59,0x89,0x11,0xb8,0xf1,0xca,0x51,0x44,0x23,0xdd,0xc1,0x58,0x2e,0x8e,0x3c,0x90,0x26,0xa6,0x70,0xb5,0x00};
    sm9_fp_from_bytes(a, a51);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c51, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a52[32] = {0x57,0x17,0x56,0x95,0x64,0xb8,0x48,0x6e,0x94,0xb9,0xa6,0xcc,0x8d,0xe5,0x4c,0xa6,0x66,0x29,0x7d,0xf2,0x9c,0xd5,0x5c,0x75,0xb7,0x49,0xfa,0xbf,0xb3,0x2c,0x59,0xaa};
    static std::uint8_t c52[32] = {0xae,0x2e,0xad,0x2a,0xc9,0x70,0x90,0xdd,0x29,0x73,0x4d,0x99,0x1b,0xca,0x99,0x4c,0xcc,0x52,0xfb,0xe5,0x39,0xaa,0xb8,0xeb,0x6e,0x93,0xf5,0x7f,0x66,0x58,0xb3,0x54};
    sm9_fp_from_bytes(a, a52);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c52, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a53[32] = {0x9a,0x93,0x72,0x3b,0xb6,0x3e,0xd1,0x45,0xaa,0x0b,0xe4,0x16,0xd0,0x50,0x79,0xca,0xfa,0xc1,0xbb,0xac,0x90,0x8c,0xc6,0xcf,0x42,0x55,0x54,0x82,0x1b,0xc4,0xb8,0xc8};
    static std::uint8_t c53[32] = {0x7e,0xe6,0xe4,0x77,0x69,0xd9,0xfb,0x99,0x7e,0x14,0x1c,0xdd,0xab,0x12,0x2c,0x50,0xd3,0x90,0xe4,0x0e,0x06,0x9e,0x9e,0xc2,0x9f,0x3b,0x0d,0xdc,0x54,0x38,0x2c,0x13};
    sm9_fp_from_bytes(a, a53);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c53, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a54[32] = {0x77,0x89,0xd3,0x29,0xf3,0xef,0x90,0x7a,0x7a,0xa0,0x83,0xfd,0x08,0x8d,0xc6,0xf2,0x85,0x2c,0x72,0x93,0x99,0x54,0x3e,0x29,0x74,0x27,0x08,0xcc,0xbb,0xd1,0xba,0x98};
    static std::uint8_t c54[32] = {0x38,0xd3,0xa6,0x53,0xe5,0x3b,0x7a,0x03,0x1f,0x3d,0x5c,0xaa,0x1b,0x8c,0xc6,0x9f,0xe8,0x66,0x51,0xdc,0x18,0x2d,0x8d,0x77,0x02,0xde,0x76,0x71,0x94,0x52,0x2f,0xb3};
    sm9_fp_from_bytes(a, a54);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c54, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a55[32] = {0xa1,0xa8,0xf4,0x23,0x3b,0xb7,0x1f,0xf6,0xf9,0xd6,0xdc,0x7c,0x25,0x57,0xf2,0xc2,0x88,0x0a,0x7e,0x9b,0xf6,0x45,0x4f,0x78,0x21,0x21,0x35,0xf4,0x0e,0x9f,0x91,0xc4};
    static std::uint8_t c55[32] = {0x8d,0x11,0xe8,0x46,0x74,0xca,0x98,0xfc,0x1d,0xaa,0x0d,0xa8,0x55,0x21,0x1e,0x3f,0xee,0x22,0x69,0xec,0xd2,0x0f,0xb0,0x14,0x5c,0xd2,0xd0,0xc0,0x39,0xed,0xde,0x0b};
    sm9_fp_from_bytes(a, a55);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c55, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a56[32] = {0x1b,0xda,0xce,0x32,0xda,0x88,0x1c,0x8b,0xf2,0x7b,0xd5,0xa9,0x13,0xb8,0x95,0x46,0x3a,0xa6,0xe7,0x8c,0xed,0xef,0x80,0x61,0x33,0x2e,0x80,0x2a,0x67,0x57,0x51,0xce};
    static std::uint8_t c56[32] = {0x37,0xb5,0x9c,0x65,0xb5,0x10,0x39,0x17,0xe4,0xf7,0xab,0x52,0x27,0x71,0x2a,0x8c,0x75,0x4d,0xcf,0x19,0xdb,0xdf,0x00,0xc2,0x66,0x5d,0x00,0x54,0xce,0xae,0xa3,0x9c};
    sm9_fp_from_bytes(a, a56);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c56, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a57[32] = {0x29,0x99,0x25,0xc0,0x37,0x7a,0x2d,0xa6,0x44,0xc3,0x4c,0x12,0x5a,0x1a,0xca,0xa3,0x68,0x50,0xf0,0xfb,0x75,0x03,0x5f,0xd6,0x5b,0x42,0xba,0x97,0x9c,0xbc,0x11,0x4a};
    static std::uint8_t c57[32] = {0x53,0x32,0x4b,0x80,0x6e,0xf4,0x5b,0x4c,0x89,0x86,0x98,0x24,0xb4,0x35,0x95,0x46,0xd0,0xa1,0xe1,0xf6,0xea,0x06,0xbf,0xac,0xb6,0x85,0x75,0x2f,0x39,0x78,0x22,0x94};
    sm9_fp_from_bytes(a, a57);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c57, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a58[32] = {0x82,0xc9,0x16,0xef,0x34,0xd2,0xde,0xea,0x84,0x1b,0xb2,0xde,0x33,0x5d,0x84,0xd1,0x7d,0x06,0x93,0x72,0xd2,0x98,0xbe,0xda,0x77,0xcc,0x1e,0x91,0x63,0xec,0x6b,0x43};
    static std::uint8_t c58[32] = {0x4f,0x52,0x2d,0xde,0x67,0x02,0x16,0xe3,0x32,0x33,0xba,0x6c,0x71,0x2c,0x42,0x5d,0xd8,0x1a,0x93,0x9a,0x8a,0xb6,0x8e,0xd9,0x0a,0x28,0xa1,0xfa,0xe4,0x87,0x91,0x09};
    sm9_fp_from_bytes(a, a58);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c58, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a59[32] = {0x51,0xff,0x52,0xd8,0x66,0x3c,0x78,0x9e,0xc9,0x89,0xde,0x1d,0xc2,0x84,0x68,0xd7,0x4a,0x45,0x72,0x95,0x13,0xf1,0x50,0x5d,0x7e,0x9f,0x4f,0x33,0x58,0xdb,0xa1,0x6d};
    static std::uint8_t c59[32] = {0xa3,0xfe,0xa5,0xb0,0xcc,0x78,0xf1,0x3d,0x93,0x13,0xbc,0x3b,0x85,0x08,0xd1,0xae,0x94,0x8a,0xe5,0x2a,0x27,0xe2,0xa0,0xba,0xfd,0x3e,0x9e,0x66,0xb1,0xb7,0x42,0xda};
    sm9_fp_from_bytes(a, a59);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c59, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a60[32] = {0x23,0x80,0x1a,0x5b,0xd1,0xa5,0xbd,0xdc,0x67,0x59,0x4b,0x57,0x3b,0x87,0x0d,0xf2,0x1a,0xca,0xa2,0x7b,0xcb,0x0c,0xc9,0x5f,0x50,0x73,0xa9,0x30,0xb9,0x9b,0x13,0x2d};
    static std::uint8_t c60[32] = {0x47,0x00,0x34,0xb7,0xa3,0x4b,0x7b,0xb8,0xce,0xb2,0x96,0xae,0x77,0x0e,0x1b,0xe4,0x35,0x95,0x44,0xf7,0x96,0x19,0x92,0xbe,0xa0,0xe7,0x52,0x61,0x73,0x36,0x26,0x5a};
    sm9_fp_from_bytes(a, a60);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c60, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a61[32] = {0x3a,0x1c,0x57,0x74,0x8b,0xa4,0xc8,0x03,0x4d,0xa8,0x26,0x82,0x65,0x96,0x73,0x30,0xf2,0x6a,0x52,0x5e,0xe6,0x0b,0x08,0x00,0xcd,0x9e,0x4f,0x97,0xe3,0x04,0x4b,0xf2};
    static std::uint8_t c61[32] = {0x74,0x38,0xae,0xe9,0x17,0x49,0x90,0x06,0x9b,0x50,0x4d,0x04,0xcb,0x2c,0xe6,0x61,0xe4,0xd4,0xa4,0xbd,0xcc,0x16,0x10,0x01,0x9b,0x3c,0x9f,0x2f,0xc6,0x08,0x97,0xe4};
    sm9_fp_from_bytes(a, a61);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c61, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a62[32] = {0x04,0x5e,0xf4,0x63,0x28,0x75,0x86,0x73,0xb1,0xe9,0x93,0xf5,0x5e,0xd8,0x62,0xe9,0x34,0xed,0x33,0xd9,0xaf,0x82,0xc5,0x12,0x18,0xef,0x07,0x34,0x54,0x5a,0x62,0xfb};
    static std::uint8_t c62[32] = {0x08,0xbd,0xe8,0xc6,0x50,0xeb,0x0c,0xe7,0x63,0xd3,0x27,0xea,0xbd,0xb0,0xc5,0xd2,0x69,0xda,0x67,0xb3,0x5f,0x05,0x8a,0x24,0x31,0xde,0x0e,0x68,0xa8,0xb4,0xc5,0xf6};
    sm9_fp_from_bytes(a, a62);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c62, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a63[32] = {0x85,0x30,0x21,0xf6,0x7c,0x0f,0x75,0x4f,0xd5,0x72,0xa1,0xe7,0x5a,0x57,0xea,0x8f,0xbb,0xa6,0x69,0x92,0xe3,0xf8,0x0d,0x27,0xd7,0x3a,0x2d,0xea,0xf0,0xc5,0xbd,0x4b};
    static std::uint8_t c63[32] = {0x54,0x20,0x43,0xec,0xf5,0x7b,0x43,0xad,0xd4,0xe1,0x98,0x7e,0xbf,0x21,0x0d,0xda,0x55,0x5a,0x3f,0xda,0xad,0x75,0x2b,0x73,0xc9,0x04,0xc0,0xad,0xfe,0x3a,0x35,0x19};
    sm9_fp_from_bytes(a, a63);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c63, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a64[32] = {0xae,0xd0,0x4e,0x05,0xca,0x63,0xb9,0x2a,0xed,0x8e,0x9f,0x49,0x16,0x17,0xa0,0x70,0x9c,0xdb,0x77,0x10,0x1c,0x03,0xb3,0x3d,0xf2,0x89,0x99,0x5e,0xb7,0x2c,0x8c,0xf9};
    static std::uint8_t c64[32] = {0xa7,0x60,0x9c,0x0b,0x92,0x23,0xcb,0x64,0x05,0x19,0x93,0x42,0x36,0xa0,0x79,0x9c,0x17,0xc4,0x5a,0xd5,0x1d,0x8c,0x77,0x9f,0xff,0xa3,0x97,0x95,0x8b,0x07,0xd4,0x75};
    sm9_fp_from_bytes(a, a64);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c64, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a65[32] = {0x2a,0x0c,0xe6,0xf3,0xfe,0x4c,0xa8,0xff,0x89,0xce,0xfe,0x0a,0x23,0xcb,0x7c,0x12,0x5e,0xe8,0xda,0x8d,0xfb,0xe2,0x04,0x3d,0x3a,0x5a,0x01,0x7a,0xac,0x8e,0x59,0x55};
    static std::uint8_t c65[32] = {0x54,0x19,0xcd,0xe7,0xfc,0x99,0x51,0xff,0x13,0x9d,0xfc,0x14,0x47,0x96,0xf8,0x24,0xbd,0xd1,0xb5,0x1b,0xf7,0xc4,0x08,0x7a,0x74,0xb4,0x02,0xf5,0x59,0x1c,0xb2,0xaa};
    sm9_fp_from_bytes(a, a65);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c65, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a66[32] = {0x48,0x5e,0xc7,0xa0,0x15,0x2d,0x67,0x47,0xb2,0x94,0x1d,0xec,0x32,0xde,0xe9,0x6e,0xee,0x0c,0x7f,0x35,0xb1,0xd9,0xe3,0xc0,0x8e,0x37,0x74,0x0d,0x6d,0xe1,0xc7,0xb0};
    static std::uint8_t c66[32] = {0x90,0xbd,0x8f,0x40,0x2a,0x5a,0xce,0x8f,0x65,0x28,0x3b,0xd8,0x65,0xbd,0xd2,0xdd,0xdc,0x18,0xfe,0x6b,0x63,0xb3,0xc7,0x81,0x1c,0x6e,0xe8,0x1a,0xdb,0xc3,0x8f,0x60};
    sm9_fp_from_bytes(a, a66);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c66, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a67[32] = {0x05,0x7c,0xd1,0x42,0xf8,0x7f,0x03,0xa4,0xd6,0x47,0x6d,0xd8,0x66,0x9e,0x2e,0xe0,0xd0,0x14,0xf5,0x0e,0xfe,0xbd,0xe6,0xd6,0xc7,0x74,0xbd,0xdf,0x6b,0x22,0x59,0x58};
    static std::uint8_t c67[32] = {0x0a,0xf9,0xa2,0x85,0xf0,0xfe,0x07,0x49,0xac,0x8e,0xdb,0xb0,0xcd,0x3c,0x5d,0xc1,0xa0,0x29,0xea,0x1d,0xfd,0x7b,0xcd,0xad,0x8e,0xe9,0x7b,0xbe,0xd6,0x44,0xb2,0xb0};
    sm9_fp_from_bytes(a, a67);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c67, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a68[32] = {0x15,0xd0,0xc6,0x44,0xa4,0xb6,0x73,0x6f,0x3f,0x9d,0xbf,0x38,0x1f,0x17,0x81,0x70,0xe0,0x42,0x4f,0x49,0xd5,0x36,0x5d,0x99,0x05,0x15,0xbf,0xdc,0x41,0x6a,0x30,0xb2};
    static std::uint8_t c68[32] = {0x2b,0xa1,0x8c,0x89,0x49,0x6c,0xe6,0xde,0x7f,0x3b,0x7e,0x70,0x3e,0x2f,0x02,0xe1,0xc0,0x84,0x9e,0x93,0xaa,0x6c,0xbb,0x32,0x0a,0x2b,0x7f,0xb8,0x82,0xd4,0x61,0x64};
    sm9_fp_from_bytes(a, a68);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c68, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a69[32] = {0x22,0x99,0xd9,0xc6,0x46,0x80,0x48,0x94,0xad,0x28,0xab,0x8a,0x0d,0xc5,0xa8,0x23,0x11,0x30,0x23,0x7e,0xe1,0xe8,0x0c,0x03,0x46,0x79,0xc0,0x24,0x4a,0x9d,0x6a,0x1d};
    static std::uint8_t c69[32] = {0x45,0x33,0xb3,0x8c,0x8d,0x00,0x91,0x29,0x5a,0x51,0x57,0x14,0x1b,0x8b,0x50,0x46,0x22,0x60,0x46,0xfd,0xc3,0xd0,0x18,0x06,0x8c,0xf3,0x80,0x48,0x95,0x3a,0xd4,0x3a};
    sm9_fp_from_bytes(a, a69);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c69, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a70[32] = {0x11,0x28,0xe3,0x69,0xfa,0xe4,0xc9,0x72,0x93,0xbe,0xbb,0x6f,0xaf,0xa5,0x0e,0x4c,0x44,0x4a,0x5f,0xe7,0x70,0x13,0xee,0x49,0x8f,0x39,0xcf,0x61,0x01,0x68,0x44,0x13};
    static std::uint8_t c70[32] = {0x22,0x51,0xc6,0xd3,0xf5,0xc9,0x92,0xe5,0x27,0x7d,0x76,0xdf,0x5f,0x4a,0x1c,0x98,0x88,0x94,0xbf,0xce,0xe0,0x27,0xdc,0x93,0x1e,0x73,0x9e,0xc2,0x02,0xd0,0x88,0x26};
    sm9_fp_from_bytes(a, a70);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c70, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a71[32] = {0x69,0xdc,0xb4,0x9e,0xef,0xaf,0x8c,0xe3,0x77,0x3b,0xb3,0x2a,0x60,0xf3,0x6a,0x71,0x42,0x00,0xdd,0x20,0xf4,0x5b,0xc1,0x34,0x24,0xdf,0x4b,0xcb,0x68,0xbf,0xcb,0xea};
    static std::uint8_t c71[32] = {0x1d,0x79,0x69,0x3d,0xdc,0xbb,0x72,0xd5,0x18,0x73,0xbb,0x04,0xcc,0x58,0x0d,0x9d,0x62,0x0f,0x26,0xf6,0xce,0x3c,0x93,0x8c,0x64,0x4e,0xfc,0x6e,0xee,0x2e,0x52,0x57};
    sm9_fp_from_bytes(a, a71);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c71, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a72[32] = {0x14,0xfd,0xbf,0x3d,0x3e,0x71,0x99,0xa9,0x86,0xff,0x31,0x42,0x5d,0xe6,0xd8,0x7e,0x34,0x04,0xe8,0x90,0xad,0x6d,0x50,0x59,0x93,0x1f,0xd4,0x7a,0x6b,0x21,0x8e,0x27};
    static std::uint8_t c72[32] = {0x29,0xfb,0x7e,0x7a,0x7c,0xe3,0x33,0x53,0x0d,0xfe,0x62,0x84,0xbb,0xcd,0xb0,0xfc,0x68,0x09,0xd1,0x21,0x5a,0xda,0xa0,0xb3,0x26,0x3f,0xa8,0xf4,0xd6,0x43,0x1c,0x4e};
    sm9_fp_from_bytes(a, a72);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c72, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a73[32] = {0x45,0x01,0xa2,0xd4,0xd0,0xe2,0x62,0x27,0xb9,0x0f,0x39,0xee,0xb2,0xde,0x5a,0x43,0x0c,0xd2,0x82,0x3f,0x0a,0x49,0x74,0xe8,0x0d,0xf0,0x8c,0xca,0x54,0x3d,0x56,0xc7};
    static std::uint8_t c73[32] = {0x8a,0x03,0x45,0xa9,0xa1,0xc4,0xc4,0x4f,0x72,0x1e,0x73,0xdd,0x65,0xbc,0xb4,0x86,0x19,0xa5,0x04,0x7e,0x14,0x92,0xe9,0xd0,0x1b,0xe1,0x19,0x94,0xa8,0x7a,0xad,0x8e};
    sm9_fp_from_bytes(a, a73);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c73, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a74[32] = {0x1c,0x7d,0xc2,0x7b,0x0c,0x3b,0xe4,0x74,0x9f,0xd6,0x4b,0xa6,0x64,0xa8,0x60,0x96,0x4b,0x52,0x1f,0x2b,0x15,0x3f,0x9b,0xf5,0xaf,0x19,0x90,0x67,0x1e,0x90,0x25,0x16};
    static std::uint8_t c74[32] = {0x38,0xfb,0x84,0xf6,0x18,0x77,0xc8,0xe9,0x3f,0xac,0x97,0x4c,0xc9,0x50,0xc1,0x2c,0x96,0xa4,0x3e,0x56,0x2a,0x7f,0x37,0xeb,0x5e,0x33,0x20,0xce,0x3d,0x20,0x4a,0x2c};
    sm9_fp_from_bytes(a, a74);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c74, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a75[32] = {0x06,0xb6,0x66,0xe1,0xd4,0xfc,0x5f,0xcf,0xc3,0x8d,0xe6,0x70,0x12,0x95,0xa0,0x23,0xf2,0xc1,0x8d,0x60,0x9f,0xff,0x1e,0xa6,0xf1,0x54,0xa4,0xdb,0x29,0xb1,0xdc,0x39};
    static std::uint8_t c75[32] = {0x0d,0x6c,0xcd,0xc3,0xa9,0xf8,0xbf,0x9f,0x87,0x1b,0xcc,0xe0,0x25,0x2b,0x40,0x47,0xe5,0x83,0x1a,0xc1,0x3f,0xfe,0x3d,0x4d,0xe2,0xa9,0x49,0xb6,0x53,0x63,0xb8,0x72};
    sm9_fp_from_bytes(a, a75);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c75, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a76[32] = {0x48,0x08,0xb1,0xa9,0x12,0x7f,0xe5,0x9b,0x2f,0xc5,0x8b,0xaf,0x13,0x55,0x2d,0x46,0xb7,0xb3,0x25,0x4c,0x7b,0x78,0x47,0x14,0x8c,0xd3,0xe5,0x50,0x99,0x44,0x27,0x56};
    static std::uint8_t c76[32] = {0x90,0x11,0x63,0x52,0x24,0xff,0xcb,0x36,0x5f,0x8b,0x17,0x5e,0x26,0xaa,0x5a,0x8d,0x6f,0x66,0x4a,0x98,0xf6,0xf0,0x8e,0x29,0x19,0xa7,0xca,0xa1,0x32,0x88,0x4e,0xac};
    sm9_fp_from_bytes(a, a76);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c76, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a77[32] = {0x3f,0x01,0xdd,0xdf,0xf4,0x61,0xe1,0x3e,0xe4,0x10,0x39,0x6c,0x70,0xd3,0x75,0x87,0x69,0x80,0x20,0x9c,0x31,0xe6,0x62,0xcd,0x36,0xfb,0xea,0x1d,0x83,0x48,0xc6,0xab};
    static std::uint8_t c77[32] = {0x7e,0x03,0xbb,0xbf,0xe8,0xc3,0xc2,0x7d,0xc8,0x20,0x72,0xd8,0xe1,0xa6,0xeb,0x0e,0xd3,0x00,0x41,0x38,0x63,0xcc,0xc5,0x9a,0x6d,0xf7,0xd4,0x3b,0x06,0x91,0x8d,0x56};
    sm9_fp_from_bytes(a, a77);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c77, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a78[32] = {0x0c,0x33,0x5f,0x43,0x5f,0xb1,0x38,0xe4,0xe0,0x6e,0x6e,0xa0,0x29,0x68,0xd8,0xa7,0x58,0x08,0xb9,0x8a,0x8a,0x74,0x8c,0x29,0x2c,0xc9,0xa3,0x3d,0x13,0xcd,0x5b,0xbc};
    static std::uint8_t c78[32] = {0x18,0x66,0xbe,0x86,0xbf,0x62,0x71,0xc9,0xc0,0xdc,0xdd,0x40,0x52,0xd1,0xb1,0x4e,0xb0,0x11,0x73,0x15,0x14,0xe9,0x18,0x52,0x59,0x93,0x46,0x7a,0x27,0x9a,0xb7,0x78};
    sm9_fp_from_bytes(a, a78);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c78, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a79[32] = {0x0e,0x23,0xc0,0x9c,0x0a,0xbb,0x4e,0x30,0x1b,0x99,0x16,0x7b,0xfc,0x56,0xd7,0x78,0x85,0x85,0x30,0x49,0xda,0x3b,0x6b,0x17,0xe9,0xee,0xbe,0xac,0xcb,0x09,0xe7,0xf8};
    static std::uint8_t c79[32] = {0x1c,0x47,0x81,0x38,0x15,0x76,0x9c,0x60,0x37,0x32,0x2c,0xf7,0xf8,0xad,0xae,0xf1,0x0b,0x0a,0x60,0x93,0xb4,0x76,0xd6,0x2f,0xd3,0xdd,0x7d,0x59,0x96,0x13,0xcf,0xf0};
    sm9_fp_from_bytes(a, a79);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c79, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a80[32] = {0x2c,0xbb,0x7f,0xbe,0x6c,0x25,0x70,0x35,0x18,0x77,0x27,0x8d,0xfd,0x73,0x4d,0x92,0x22,0xa6,0x0e,0x73,0x6e,0x65,0xfa,0x01,0x54,0x72,0xab,0x19,0xd0,0x1d,0xfe,0x6d};
    static std::uint8_t c80[32] = {0x59,0x76,0xff,0x7c,0xd8,0x4a,0xe0,0x6a,0x30,0xee,0x4f,0x1b,0xfa,0xe6,0x9b,0x24,0x45,0x4c,0x1c,0xe6,0xdc,0xcb,0xf4,0x02,0xa8,0xe5,0x56,0x33,0xa0,0x3b,0xfc,0xda};
    sm9_fp_from_bytes(a, a80);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c80, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a81[32] = {0x23,0x1f,0xba,0x85,0x5d,0xe3,0xe3,0xed,0x9d,0xaf,0x12,0x0f,0x3a,0x58,0xd4,0xc1,0xe3,0x69,0xc7,0xae,0x1b,0x7d,0x6b,0xc7,0x2f,0xaf,0x51,0xbc,0x34,0x76,0xb1,0xbd};
    static std::uint8_t c81[32] = {0x46,0x3f,0x75,0x0a,0xbb,0xc7,0xc7,0xdb,0x3b,0x5e,0x24,0x1e,0x74,0xb1,0xa9,0x83,0xc6,0xd3,0x8f,0x5c,0x36,0xfa,0xd7,0x8e,0x5f,0x5e,0xa3,0x78,0x68,0xed,0x63,0x7a};
    sm9_fp_from_bytes(a, a81);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c81, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a82[32] = {0x83,0x83,0x95,0xca,0xc2,0xd6,0x92,0x09,0x55,0x3a,0xcd,0x2a,0xec,0x48,0x3c,0x41,0x72,0x00,0xf9,0x2f,0xc1,0x25,0x33,0x52,0x78,0x37,0xde,0x26,0x3c,0xa2,0x88,0x7f};
    static std::uint8_t c82[32] = {0x50,0xc7,0x2b,0x95,0x83,0x09,0x7d,0x20,0xd4,0x71,0xef,0x05,0xe3,0x01,0xb1,0x3d,0xc2,0x0f,0x5f,0x14,0x67,0xcf,0x77,0xc9,0x0b,0x00,0x21,0x24,0x95,0xf3,0xcb,0x81};
    sm9_fp_from_bytes(a, a82);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c82, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a83[32] = {0x10,0x90,0x17,0x7c,0x5c,0x0f,0xf4,0xa9,0xce,0xcc,0xfa,0xea,0x1d,0x80,0x92,0x60,0x88,0x88,0xe5,0xd4,0xbb,0x01,0x3b,0x54,0xf2,0x77,0xce,0xb7,0xf3,0x40,0x09,0x48};
    static std::uint8_t c83[32] = {0x21,0x20,0x2e,0xf8,0xb8,0x1f,0xe9,0x53,0x9d,0x99,0xf5,0xd4,0x3b,0x01,0x24,0xc1,0x11,0x11,0xcb,0xa9,0x76,0x02,0x76,0xa9,0xe4,0xef,0x9d,0x6f,0xe6,0x80,0x12,0x90};
    sm9_fp_from_bytes(a, a83);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c83, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a84[32] = {0x43,0xb0,0x96,0x1f,0x6b,0xa1,0x12,0x09,0xa8,0xf0,0xd5,0x5e,0x4d,0x0f,0xb0,0x58,0x2b,0x50,0x63,0xcc,0x55,0xc7,0x63,0xac,0x4c,0xd6,0x9a,0x56,0x12,0xe9,0xd4,0x71};
    static std::uint8_t c84[32] = {0x87,0x61,0x2c,0x3e,0xd7,0x42,0x24,0x13,0x51,0xe1,0xaa,0xbc,0x9a,0x1f,0x60,0xb0,0x56,0xa0,0xc7,0x98,0xab,0x8e,0xc7,0x58,0x99,0xad,0x34,0xac,0x25,0xd3,0xa8,0xe2};
    sm9_fp_from_bytes(a, a84);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c84, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a85[32] = {0x70,0x4b,0x15,0x8d,0x89,0xeb,0xab,0x44,0xff,0xf6,0xcc,0xcf,0x52,0xb8,0x9d,0x63,0x99,0x2e,0xc0,0x63,0xcc,0xa0,0xa7,0xbc,0x42,0x52,0xaf,0xdc,0xe6,0x26,0x81,0xd5};
    static std::uint8_t c85[32] = {0x2a,0x56,0x2b,0x1b,0x11,0x33,0xaf,0x98,0x29,0xe9,0xee,0x4e,0xaf,0xe2,0x73,0x82,0x10,0x6a,0xed,0x7c,0x7e,0xc6,0x60,0x9c,0x9f,0x35,0xc4,0x91,0xe8,0xfb,0xbe,0x2d};
    sm9_fp_from_bytes(a, a85);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c85, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a86[32] = {0x48,0xde,0xa8,0x6f,0xbd,0xe2,0xf6,0xc4,0x09,0xf2,0x1e,0xb5,0xcf,0x7c,0xf7,0x34,0x12,0xc6,0x07,0x8a,0x1d,0x27,0x4c,0x93,0x94,0x7f,0xd7,0x41,0xa0,0xed,0xf7,0xc7};
    static std::uint8_t c86[32] = {0x91,0xbd,0x50,0xdf,0x7b,0xc5,0xed,0x88,0x13,0xe4,0x3d,0x6b,0x9e,0xf9,0xee,0x68,0x25,0x8c,0x0f,0x14,0x3a,0x4e,0x99,0x27,0x28,0xff,0xae,0x83,0x41,0xdb,0xef,0x8e};
    sm9_fp_from_bytes(a, a86);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c86, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a87[32] = {0x1d,0x2b,0xe8,0x73,0x68,0xa0,0x33,0xf7,0x23,0x72,0x66,0xb6,0x1c,0x9e,0xe9,0x9c,0xed,0x1d,0xbe,0xce,0x1f,0xb2,0xc5,0x11,0xbf,0xb8,0x97,0xae,0x9b,0x85,0x53,0x1c};
    static std::uint8_t c87[32] = {0x3a,0x57,0xd0,0xe6,0xd1,0x40,0x67,0xee,0x46,0xe4,0xcd,0x6c,0x39,0x3d,0xd3,0x39,0xda,0x3b,0x7d,0x9c,0x3f,0x65,0x8a,0x23,0x7f,0x71,0x2f,0x5d,0x37,0x0a,0xa6,0x38};
    sm9_fp_from_bytes(a, a87);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c87, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a88[32] = {0x5f,0x04,0x31,0xd5,0xb9,0x21,0x4d,0xab,0x3c,0x76,0xd2,0xbe,0xdb,0x64,0xc4,0x8d,0x50,0x66,0x93,0x7c,0x6c,0xbc,0x25,0x0e,0xd7,0xb4,0xd3,0xc5,0x74,0x0f,0x29,0xce};
    static std::uint8_t c88[32] = {0x07,0xc8,0x63,0xab,0x6f,0x9e,0xf4,0x64,0xa2,0xe9,0xfa,0x2d,0xc1,0x3a,0xc1,0xd5,0x7e,0xda,0x93,0xad,0xbe,0xfd,0x5b,0x41,0xc9,0xfa,0x0c,0x63,0x04,0xcd,0x0e,0x1f};
    sm9_fp_from_bytes(a, a88);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c88, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a89[32] = {0x26,0xac,0x39,0x71,0x97,0xd8,0x3d,0x45,0x1d,0xe2,0x8c,0x1e,0x36,0x33,0x6c,0x8b,0x36,0x54,0xa6,0xca,0x4a,0x76,0x93,0x34,0x1c,0x1a,0x13,0x25,0x85,0x18,0xcf,0xa1};
    static std::uint8_t c89[32] = {0x4d,0x58,0x72,0xe3,0x2f,0xb0,0x7a,0x8a,0x3b,0xc5,0x18,0x3c,0x6c,0x66,0xd9,0x16,0x6c,0xa9,0x4d,0x94,0x94,0xed,0x26,0x68,0x38,0x34,0x26,0x4b,0x0a,0x31,0x9f,0x42};
    sm9_fp_from_bytes(a, a89);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c89, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a90[32] = {0x31,0x59,0xaa,0xf1,0x83,0x3e,0x3a,0xb9,0xf2,0xcc,0xcd,0xd6,0xbd,0xc4,0x3b,0x0c,0xe9,0xd5,0xa5,0xf1,0x72,0xda,0xc2,0xb1,0x1b,0x25,0x27,0x73,0x01,0x40,0x46,0xa4};
    static std::uint8_t c90[32] = {0x62,0xb3,0x55,0xe3,0x06,0x7c,0x75,0x73,0xe5,0x99,0x9b,0xad,0x7b,0x88,0x76,0x19,0xd3,0xab,0x4b,0xe2,0xe5,0xb5,0x85,0x62,0x36,0x4a,0x4e,0xe6,0x02,0x80,0x8d,0x48};
    sm9_fp_from_bytes(a, a90);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c90, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a91[32] = {0xa2,0xde,0x18,0x25,0x4a,0xcf,0xc0,0x83,0xd3,0x90,0x9c,0xb2,0x60,0xc7,0x8d,0xde,0xd5,0x43,0xee,0xe5,0x6b,0xc2,0xec,0x90,0x90,0x82,0x3a,0xd7,0xde,0x21,0xed,0x57};
    static std::uint8_t c91[32] = {0x8f,0x7c,0x30,0x4a,0x92,0xfb,0xda,0x15,0xd1,0x1d,0x8e,0x14,0xcc,0x00,0x54,0x78,0x88,0x95,0x4a,0x7f,0xbd,0x0a,0xea,0x45,0x3b,0x94,0xda,0x87,0xd8,0xf2,0x95,0x31};
    sm9_fp_from_bytes(a, a91);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c91, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a92[32] = {0x23,0xd7,0xa1,0x31,0x3e,0x44,0x55,0x64,0xf8,0xdb,0x03,0xce,0x53,0xe9,0x51,0x8c,0x48,0x57,0xc2,0xb1,0x53,0xa6,0xf9,0x28,0xa3,0x78,0xa8,0xf2,0xe8,0xe3,0x1e,0x2b};
    static std::uint8_t c92[32] = {0x47,0xaf,0x42,0x62,0x7c,0x88,0xaa,0xc9,0xf1,0xb6,0x07,0x9c,0xa7,0xd2,0xa3,0x18,0x90,0xaf,0x85,0x62,0xa7,0x4d,0xf2,0x51,0x46,0xf1,0x51,0xe5,0xd1,0xc6,0x3c,0x56};
    sm9_fp_from_bytes(a, a92);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c92, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a93[32] = {0x34,0xa2,0xc6,0xcb,0x5a,0x2f,0x42,0x53,0xf8,0x9a,0x11,0x14,0x6b,0x82,0xdb,0x48,0xd3,0x29,0x29,0x78,0x09,0x9f,0x6a,0xcb,0x2f,0xbd,0xc1,0x60,0x33,0x69,0x74,0x93};
    static std::uint8_t c93[32] = {0x69,0x45,0x8d,0x96,0xb4,0x5e,0x84,0xa7,0xf1,0x34,0x22,0x28,0xd7,0x05,0xb6,0x91,0xa6,0x52,0x52,0xf0,0x13,0x3e,0xd5,0x96,0x5f,0x7b,0x82,0xc0,0x66,0xd2,0xe9,0x26};
    sm9_fp_from_bytes(a, a93);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c93, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a94[32] = {0x1c,0xc2,0x48,0x65,0xc7,0x37,0x91,0x42,0xcb,0x89,0xec,0x28,0x00,0xbc,0xc6,0x65,0xf7,0x70,0x7d,0x2e,0x00,0x85,0x55,0x67,0x79,0x91,0x5c,0x02,0x1f,0x09,0x26,0x41};
    static std::uint8_t c94[32] = {0x39,0x84,0x90,0xcb,0x8e,0x6f,0x22,0x85,0x97,0x13,0xd8,0x50,0x01,0x79,0x8c,0xcb,0xee,0xe0,0xfa,0x5c,0x01,0x0a,0xaa,0xce,0xf3,0x22,0xb8,0x04,0x3e,0x12,0x4c,0x82};
    sm9_fp_from_bytes(a, a94);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c94, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a95[32] = {0x4e,0xba,0xbb,0x5f,0x26,0x57,0x90,0xba,0xd7,0xe4,0x99,0x45,0xdb,0xe4,0x3c,0x52,0xe1,0xdb,0x70,0x2b,0x44,0x6d,0xa0,0xc5,0x50,0x1b,0xa9,0x8b,0x5e,0x3c,0x21,0x33};
    static std::uint8_t c95[32] = {0x9d,0x75,0x76,0xbe,0x4c,0xaf,0x21,0x75,0xaf,0xc9,0x32,0x8b,0xb7,0xc8,0x78,0xa5,0xc3,0xb6,0xe0,0x56,0x88,0xdb,0x41,0x8a,0xa0,0x37,0x53,0x16,0xbc,0x78,0x42,0x66};
    sm9_fp_from_bytes(a, a95);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c95, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a96[32] = {0x2a,0x15,0x83,0x34,0x8b,0xd1,0xa3,0x32,0x80,0x0c,0xc3,0xb1,0x09,0x92,0xbb,0xf4,0xe7,0xf0,0xcf,0x11,0x12,0xec,0x1d,0xc9,0x1e,0xd3,0x05,0x16,0xa7,0xb2,0x7f,0x90};
    static std::uint8_t c96[32] = {0x54,0x2b,0x06,0x69,0x17,0xa3,0x46,0x65,0x00,0x19,0x87,0x62,0x13,0x25,0x77,0xe9,0xcf,0xe1,0x9e,0x22,0x25,0xd8,0x3b,0x92,0x3d,0xa6,0x0a,0x2d,0x4f,0x64,0xff,0x20};
    sm9_fp_from_bytes(a, a96);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c96, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a97[32] = {0x37,0x74,0x48,0x4d,0x36,0x44,0x76,0x39,0x57,0x31,0xfd,0x10,0x96,0x1f,0x17,0x4e,0x56,0x04,0x48,0x0c,0x89,0xa1,0xc2,0x13,0x7f,0xc8,0xe3,0xfe,0xfd,0xd5,0x0f,0xe7};
    static std::uint8_t c97[32] = {0x6e,0xe8,0x90,0x9a,0x6c,0x88,0xec,0x72,0xae,0x63,0xfa,0x21,0x2c,0x3e,0x2e,0x9c,0xac,0x08,0x90,0x19,0x13,0x43,0x84,0x26,0xff,0x91,0xc7,0xfd,0xfb,0xaa,0x1f,0xce};
    sm9_fp_from_bytes(a, a97);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c97, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a98[32] = {0x2b,0x63,0xcf,0xf6,0x1a,0x95,0x54,0x9c,0xb4,0x89,0x30,0x81,0x81,0xe9,0x31,0x03,0xda,0x2f,0x01,0xd1,0x48,0x0a,0x6d,0xf7,0x3b,0x1a,0x70,0x4d,0xee,0x23,0x98,0x0a};
    static std::uint8_t c98[32] = {0x56,0xc7,0x9f,0xec,0x35,0x2a,0xa9,0x39,0x69,0x12,0x61,0x03,0x03,0xd2,0x62,0x07,0xb4,0x5e,0x03,0xa2,0x90,0x14,0xdb,0xee,0x76,0x34,0xe0,0x9b,0xdc,0x47,0x30,0x14};
    sm9_fp_from_bytes(a, a98);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c98, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
    static std::uint8_t a99[32] = {0x0d,0xde,0xea,0x75,0x1e,0xbd,0xff,0x82,0x0f,0x6d,0xe2,0x46,0x58,0x42,0x5e,0xe8,0x1f,0x37,0xab,0xc3,0x90,0x8d,0xa6,0x7a,0x3a,0xe7,0xcd,0x38,0x15,0xf2,0x1e,0x38};
    static std::uint8_t c99[32] = {0x1b,0xbd,0xd4,0xea,0x3d,0x7b,0xff,0x04,0x1e,0xdb,0xc4,0x8c,0xb0,0x84,0xbd,0xd0,0x3e,0x6f,0x57,0x87,0x21,0x1b,0x4c,0xf4,0x75,0xcf,0x9a,0x70,0x2b,0xe4,0x3c,0x70};
    sm9_fp_from_bytes(a, a99);
    sm9_fp_dbl(c, a);
    sm9_fp_to_bytes(c_data, c);
    if (std::memcmp(c99, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_dbl");
    }
}